<?xml version="1.0" encoding="utf-8"?><!--
SPDX-FileCopyrightText: Adam Evyčędo

SPDX-License-Identifier: GPL-3.0-or-later
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	xmlns:tool="http://schemas.android.com/tools"
	android:layout_width="match_parent"
	android:layout_height="match_parent"
	android:paddingBottom="16dp">

	<com.google.android.material.appbar.AppBarLayout
		android:id="@+id/app_bar_layout"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:fitsSystemWindows="true"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toTopOf="parent">

		<com.google.android.material.appbar.CollapsingToolbarLayout
			android:id="@+id/collapsing_layout"
			style="?attr/collapsingToolbarLayoutMediumStyle"
			android:layout_width="match_parent"
			android:layout_height="?attr/collapsingToolbarLayoutMediumSize"
			app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
			app:maxLines="2">

			<com.google.android.material.appbar.MaterialToolbar
				android:id="@+id/departures_app_bar"
				android:layout_width="match_parent"
				android:layout_height="?attr/actionBarSize"
				android:elevation="0dp"
				app:layout_collapseMode="pin"
				tool:title="Withholding Wayfarer,\nway to go" />

		</com.google.android.material.appbar.CollapsingToolbarLayout>

	</com.google.android.material.appbar.AppBarLayout>

	<com.google.android.material.imageview.ShapeableImageView
		android:id="@+id/avatar"
		android:layout_width="64dp"
		android:layout_height="64dp"
		android:layout_marginTop="-32dp"
		android:layout_marginEnd="24dp"
		android:background="@color/bimba_grey"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/app_bar_layout"
		app:shapeAppearanceOverlay="@style/roundedImageView"
		app:srcCompat="@drawable/avatar_anonymous" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/email_label"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="16dp"
		android:layout_marginTop="64dp"
		android:text="@string/email_address_label"
		android:textAppearance="@style/TextAppearance.Material3.LabelSmall"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/app_bar_layout" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/email"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="16dp"
		android:layout_marginTop="4dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/email_label"
		tool:text="ampelmaennchen@bimba.app" />

	<ImageView
		android:id="@+id/email_verified"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:layout_marginStart="8dp"
		android:contentDescription="@string/email_verified"
		android:src="@drawable/verified"
		app:layout_constraintBottom_toBottomOf="@+id/email"
		app:layout_constraintStart_toEndOf="@+id/email"
		app:layout_constraintTop_toTopOf="@+id/email" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/matrix_label"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="16dp"
		android:layout_marginTop="16dp"
		android:text="@string/matrix_id_label"
		android:textAppearance="@style/TextAppearance.Material3.LabelSmall"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/email" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/matrix"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="16dp"
		android:layout_marginTop="4dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/matrix_label"
		tool:text="\@ampelmaennchen:bimba.app" />

	<ImageView
		android:id="@+id/matrix_verified"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:layout_marginStart="8dp"
		android:contentDescription="@string/matrix_verified"
		android:src="@drawable/verified"
		app:layout_constraintBottom_toBottomOf="@+id/matrix"
		app:layout_constraintStart_toEndOf="@+id/matrix"
		app:layout_constraintTop_toTopOf="@+id/matrix" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/seat_label"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="16dp"
		android:layout_marginTop="16dp"
		android:text="@string/seat"
		android:textAppearance="@style/TextAppearance.Material3.LabelSmall"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/matrix" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/seat"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="16dp"
		android:layout_marginTop="4dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/seat_label"
		tool:text="garage" />

	<Button
		android:id="@+id/edit_profile_button"
		style="@style/Widget.Material3.Button.Icon"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="16dp"
		android:layout_marginBottom="16dp"
		android:text="@string/edit_profile"
		app:icon="@drawable/edit"
		app:layout_constraintBottom_toBottomOf="parent"
		app:layout_constraintStart_toStartOf="parent" />

	<Button
		android:id="@+id/logout_button"
		style="@style/Widget.Material3.Button.Icon"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginEnd="16dp"
		android:layout_marginBottom="16dp"
		android:backgroundTint="?colorError"
		android:text="@string/log_out"
		app:icon="@drawable/logout"
		app:layout_constraintBottom_toBottomOf="parent"
		app:layout_constraintEnd_toEndOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>